var express = require('express');
var router = express.Router();
const departmentController = require('../controller/departmentController.js');


router.get('/add', departmentController.add);
router.get('/del', departmentController.del);
router.get('/update', departmentController.update);
// 查询所有
router.get('/select', departmentController.select);
// 关联院区和科室，从科室的branch_id找到院区的name
router.get('/selectdepartmentfrombranch', departmentController.selectdepartmentfrombranch);

module.exports = router;